@(title: String,moreScript:Html = Html(""))(content: Html)(implicit lang:Lang,flash:Flash,request:Request[_])

<!DOCTYPE html>

<html>
    <head>
        <title>@title</title>
        
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.css")">
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/prettify.css")">
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/flat-ui.css")">
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/docs.css")">
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap-markdown.min.css")">
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
        <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
		<nav class="navbar navbar-inverse navbar-embossed" role="navigation">
          <div class="navbar-header">
            <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-collapse">
            </button>
            <a class="navbar-brand" href="@routes.Application.index">@Messages("application.name")</a>
          </div>
          
            
          <div class="collapse navbar-collapse" id="navbar-collapse">
            <p class="navbar-text navbar-right"><a class="navbar-link" href="#">@Messages("application.about")</a></p>
            @if(!request.session.get(util.Constants.User).isDefined){
            <p class="navbar-text navbar-right"><a class="navbar-link" href="@routes.Users.login">@Messages("user.login")</a></p>
            }else{
            <p class="navbar-text navbar-right"><a class="navbar-link" href="@routes.Users.logout">@Messages("user.logout")</a></p>
            <p class="navbar-text navbar-right">@request.session.get(util.Constants.User).get</p>
            }
          </div>
        </nav>
        
        <div class="container">
       		 @content
        </div>
        
		<script src="@routes.Assets.at("javascripts/jquery-1.9.0.min.js")"></script>
		<script src="@routes.Assets.at("javascripts/jquery-ui-1.10.3.custom.min.js")"></script>
		<script src="@routes.Assets.at("javascripts/jquery.ui.touch-punch.min.js")"></script>
		<script src="@routes.Assets.at("javascripts/bootstrap.min.js")"></script>
		<script src="@routes.Assets.at("javascripts/bootstrap-select.js")"></script>
		<script src="@routes.Assets.at("javascripts/bootstrap-switch.js")"></script>
		<script src="@routes.Assets.at("javascripts/flatui-checkbox.js")"></script>
		<script src="@routes.Assets.at("javascripts/flatui-radio.js")"></script>
		<script src="@routes.Assets.at("javascripts/jquery.tagsinput.js")"></script>
		<script src="@routes.Assets.at("javascripts/jquery.placeholder.js")"></script>
		@moreScript
    </body>
</html>
